export namespace ShopAction {
  export class Submit {
    static readonly type = `提交`;
  }

  export class OpenModal {
    static readonly type = `打开编辑框`;

    constructor(public data?: any) {
    }
  }

  export class CloseModal {
    static readonly type = `关闭编辑框`;
  }

  export class Delete {
    static readonly type = `删除商品`;

    constructor(public data: any) {
    }
  }

  export class AddToCart {
    static readonly type = `添加到购物车`;

    constructor(public data: any) {
    }
  }

  export class GotoCheckout {
    static readonly type = `去结账`;
  }

  export class ChangeCount {
    static readonly type = `修改购物车中物品的数量`;

    constructor(public count: number, public data: any) {
    }
  }

  export class ClearCart {
    static readonly type = `清空购物车`;
  }

}
